package com.itany.corejava.day08;

import com.itany.corejava.day07.Dog;

public class Test3 {


    public static void main(String[] args) throws CloneNotSupportedException {
        // Person p1=new Person();
        // p1.setId("1");
        // p1.setName("abc");
        // p1.setAge(26);
        // p1.setSex(true);
        // Address address1=new Address();
        // address1.setCity("南京市");
        // p1.setAddress(address1);
        //
        // System.out.println("p1 = " + p1);
        // System.out.println("p1.getAddress() = " + p1.getAddress());
        //
        // Person p2= (Person) p1.clone();
        //
        // System.out.println("p2 = " + p2);
        // System.out.println("p2.getId() = " + p2.getId());
        // System.out.println("p2.getName() = " + p2.getName());
        // System.out.println("p2.getAge() = " + p2.getAge());
        // System.out.println("p2.isSex() = " + p2.isSex());
        // Address address2=p2.getAddress();
        // System.out.println("address2 = " + address2);
        // System.out.println(address2.getCity());
        //
        //
        // System.out.println("p1.equals(p2) = " + p1.equals(p2));



        Person p=new Person();
        p=null;

        Runtime.getRuntime().gc();
        System.gc();

    }
}
